<!DOCTYPE html>
<html>
{include file="head.html"}
<body>
<div class="body">
  <div class="header" > <a href="{$appshop}?m=index&a=product"  class="left-btn"><span class="iconfont icon-back"></span></a>
    <div class="title">优惠券用户</div>
     
  </div>
  
  
  
 
   <div class="uclist">
 {foreach item=c from=$data}
 
 <div class="item" style="cursor:inherit">
 	<div class="pd">
 	<div class="hd">{$c.userid}::{$c.nickname} </div>
    <div class="row">{$c.title}<span class="right">￥{$c.money}</span></div>
    <div class="row">到期时间：{$c.end_time|date:Y-m-d} <span class="right">领取时间：{$c.dateline|date:Y-m-d}</span></div>
    <div class="row">
    	<span>状态：
        	{if $c.status eq 1}
        已使用
           {else}
           未使用
          {/if}
        </span>
        {if $c.notice eq 1}
        <span class="right"><a href="javascript:;" class="notice" url="{$shopadmin}?m=coupon_user&ajax=1&a=notice&id={$c.id}">通知</a></span>
        {/if}
    </div>
    </div>
 </div>
 {/foreach}
 </div>
 
 
 
<div>{$pagelist}</div>
</div>
</div>
<script>
$(document).on("click",".notice",function(){
	var obj=$(this);
	$.get($(this).attr("url"),function(data){
		if(data.error){
			skyToast(data.message);
		}else{
			obj.html("已通知");
		}
	},"json");
});
</script>
{include file="footer.html"}
</body>
</html>